package org.jeecg.modules.sms.sms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.sms.sms.entity.CsSmsCzjl;

/**
 * @Description: 短信充值记录表
 * @Author: jeecg-boot
 * @Date:   2023-11-08
 * @Version: V1.0
 */
public interface ICsSmsCzjlService extends IService<CsSmsCzjl> {
    /**
     * 校验短信余额是否够本次发送
     * @param tenantId
     * @param fsts
     * @return
     */
    public boolean checkSmsYe(String tenantId, int fsts);

    /**
     * 扣减余额
     * @param tenantId
     * @param reduceCount
     * @return
     */
    public Result<String> reduceSmsYe(String tenantId, int reduceCount);
}
